package com.example.blog.schedulerJob;

import org.quartz.*;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

@DisallowConcurrentExecution
@PersistJobDataAfterExecution
public class InformationStatistics implements InterruptableJob {
    @Resource
    Scheduler scheduler;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {



    }

    @Override
    public void interrupt() throws UnableToInterruptJobException {
        try {
            scheduler.start();
        } catch (SchedulerException e) {
            throw new RuntimeException(e);
        }
    }
}
